<?php
    class UserController extends Controller
    {
        public $siteName = 'Tài khoản';
        public $siteSlogan = 'Tài khoản';
        
        // current user object
        public $user;
        
        // list domains use user system
        public $domains = array('hehe.vn', 'chaotienganh.vn', 'hangve.vn');
        
        public $topNav = 'user';
        
        public function init(){
            parent::init();

            // init properties 
            $this->user = Yii::app()->user->isGuest ? NULL : Yii::app()->user->user; 
        }

}